import 'package:common/module/module_manager.dart';
import 'package:common/module/module_registrar.dart';
import 'package:common/network/client_impl/common_network/common_client.dart';

import '../../../common.dart';

abstract class CommonService {
  static Future requestImToken(String userId) async {
    return CommonClient().dio.post(
      BuildType.Release == ModuleManager().buildType
          ? "https://xxx"
          : "https://xxxx",
      data: {"userId": userId},
    );
  }

  static Future<Response> getSingleScreenConfig() {
    return CommonClient().dio.get(BuildType.Release == ModuleManager().buildType
        ? "https://xxxx"
        : "https://xxxxx",);
  }
}
